class GameStats:
    """跟踪游戏统计类"""
    def __init__(self, ai_game):
        """初始化统计信息"""
        self.settings = ai_game.settings
        self.reset_stats()

    def reset_stats(self):
        """初始化在运行游戏期间可能变化的统计信息"""
        self.ships_left = self.settings.ship_limit

        # 分数
        self.score = 0
